const BASE_URL = 'http://localhost:8082'
export const myRequest = (options)=>{
    return new Pormise(()=>{
        uni.request({
            url:BASE_URL+options.url,
            method:options.method || 'GET',
            data:options.data || {},
            success:(res)=>{
                if(res.data.status != 0){
                    return uni.showToast({
                        titel:'...'
                    })
                }
                resolve(res)
            },
            fail:(err)=>{
                uni.showToast({
                    title:'.....'
                })
                reject(err)
            }
        )
    })
}